
{% extends "layout.html" %}
{% block before %}
  {# 设置当前文章,ext_set 应该放到第一个block 块内 #} 
  {% ext_set tags.article(uri) as article %}
  {% ext_set  article.description as description %}
  {% ext_set  article.keywords|join:"," as keywords %}
{% endblock %}


{% block title  %}
   {{article.title }}
{% endblock %}

{% block main %}


   


<div class="post">
	 {% if article.titlePic %}
	  <a href="{{article.titlePic}}" title="{{article.title}}" class="fancybox">
	    <img src="{{article.titlePic}}" alt="{{article.title}}" class="title-pic" height="300px;" />
	  </a>
	  {% endif %}
	  <h1 class="title">{{article.title}}</h1>
	  <p class="date">{{article.pubDate}}</p>
	  <div class="post-body">
	    {{article.content|safe}}
	  </div>
	  <div class="posts-nav">
	  {% if article.prev %}
	    <a class="prev" href="{{article.prev.url}}">
	      <i class="icon-arrow-left"></i>
	      <span>{{article.prev.title}}</span>
	    </a>
	   {% endif %}
	   {% if article.next %}
	    <a class="next" href="{{article.next.url}}">
	     <span>{{article.next.title}}</span>
	     <i class="icon-arrow-right"></i>
	   </a>
	   {% endif %}

</div>


{% endblock %}

